﻿using System;
using RHD.Data.Model;

namespace RHD.Web.Infrastructure {
	[Serializable]
	public class Principal {

		private Users _user { get; set; }
		public Users User {
			get { return _user ?? new Users(); }
			set { _user = value; }
		}

		public bool IsAuth {
			get {
				return User != null && User.ID.HasValue;
			}
		}
	}
}